package com.example.smart_community.controller;

import com.example.smart_community.service.MaintainrequestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@CrossOrigin
@RequestMapping("/maintainrequest")
public class MaintainrequestController {
    @Autowired
    private MaintainrequestService maintainrequestService;
    @PostMapping("/insertData")
    public int  insertData( String name, String  phone,String content, Integer hId,String address,String requesttime){
       return maintainrequestService.insertData(name, phone, content, hId, address,requesttime);
    }
}
